Pure-FTPd Over SSL/TLS
2014/04/26 |
Enable SSL/TLS on Pure-FTPd.
|
|
[1] | Configure for SSL/TLS. |
root@www:~# cd /etc/ssl/private root@www:/etc/ssl/private# openssl req -x509 -nodes -newkey rsa:2048 -keyout pure-ftpd.pem -out pure-ftpd.pem -days 365 Generating a 2048 bit RSA private key ......++++++ .......++++++ writing new private key to '/etc/ssl/private/pure-ftpd.pem' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [AU]: JP # country State or Province Name (full name) [Some-State]: Hiroshima # state Locality Name (eg, city) []: Hiroshima # city Organization Name (eg, company) [Internet Widgits Pty Ltd]: GTS # company Organizational Unit Name (eg, section) []: Server World # department Common Name (eg, YOUR name) []: www.srv.world # server's FQDN
Email Address []:
root@www:/etc/ssl/private# xxx@srv.world # email address chmod 400 pure-ftpd.pem root@www:/etc/ssl/private# /etc/init.d/pure-ftpd restart Restarting ftp server: Running: /usr/sbin/pure-ftpd -l pam -u 1000 -E -8 UTF-8 -4 -O clf:/var/log/pure-ftpd/transfer.log -B -A -B |
[2] | Configure on client PC. Use FileZilla that has a function of connecting trough SSL/TLS. Open [File]-[Site Manager] and input login info, and select 'TLS/SSL' in 'Server Type'. |
![]() |
[3] | Input user name and password. |
![]() |
[4] | Following waring is shown because certificate is own made one, but it's no ploblem. Go next. |
![]() |
[5] | Just connected. |
![]() |